/*
 * @Description: 
 * @Author: iamsmiling
 * @Date: 2021-06-12 10:29:53
 * @LastEditTime: 2021-06-15 14:44:05
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:flutter/material.dart';

class SourceTopicCard extends StatelessWidget {
  const SourceTopicCard({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      constraints: BoxConstraints(minHeight: R.dimen.dp187),
      padding: EdgeInsets.symmetric(
          horizontal: R.dimen.dp24, vertical: R.dimen.dp20),
      decoration: BoxDecoration(
          color: R.color.ffffffff,
          boxShadow: [
            BoxShadow(
                offset: Offset(0, 1),
                blurRadius: R.dimen.sp4,
                color: Colors.black.withAlpha(30))
          ],
          borderRadius: BorderRadius.circular(R.dimen.sp5)),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text.rich(TextSpan(
              text: "【货拉拉】趣看资讯，多种广告业务，寻优质渠道，欢迎大佬来聊",
              style: TextStyle(
                  height: 1.6,
                  fontSize: R.dimen.sp14,
                  color: R.color.ff111111,
                  fontWeight: FontWeight.w600),
              children: [
                WidgetSpan(
                    child: Container(
                  decoration: BoxDecoration(color: R.color.ffdcf9f0),
                  margin: EdgeInsets.only(left: R.dimen.dp10),
                  padding: EdgeInsets.symmetric(
                      horizontal: R.dimen.dp8, vertical: R.dimen.dp2),
                  child: Text(
                    "广告主",
                    style: TextStyle(
                        fontSize: R.dimen.sp11, color: R.color.ff555555),
                  ),
                ))
              ])),
          Container(
            margin: EdgeInsets.symmetric(vertical: R.dimen.dp20),
            child: DefaultTextStyle(
              style: TextStyle(fontSize: R.dimen.sp12, color: R.color.ff111111),
              child: Column(
                children: [
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Expanded(
                        flex: 32,
                        child: Row(
                          children: [Text("信息编号："), Text("58798")],
                        ),
                      ),
                      Expanded(
                        flex: 32,
                        child: Row(
                          children: [Text("结算方式："), Text("CPA")],
                        ),
                      ),
                      Spacer(
                        flex: 1,
                      )
                    ],
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Expanded(
                        flex: 32,
                        child: Row(
                          children: [Text("信息编号："), Text("58798")],
                        ),
                      ),
                      Expanded(
                        flex: 32,
                        child: Row(
                          children: [Text("结算方式："), Text("CPA")],
                        ),
                      ),
                      Spacer(
                        flex: 1,
                      )
                    ],
                  ),
                  Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: [
                      Expanded(
                        flex: 32,
                        child: Row(
                          children: [Text("信息编号："), Text("58798")],
                        ),
                      ),
                      Expanded(
                        flex: 32,
                        child: Row(
                          children: [Text("结算方式："), Text("CPA")],
                        ),
                      ),
                      Spacer(
                        flex: 1,
                      )
                    ],
                  ),
                ],
              ),
            ),
          ),
          Container(
            child: DefaultTextStyle(
              style: TextStyle(color: R.color.ff999999, fontSize: R.dimen.sp11),
              child: Row(
                children: [
                  Container(
                      margin: EdgeInsets.only(right: R.dimen.dp56),
                      child: Text("首次发布：2019-10-18")),
                  Text("最后更新：2019-10-20")
                ],
              ),
            ),
          ),
        ],
      ),
    );
  }
}
